package com.jie.langlangmall.service;

import com.jie.langlangmall.dto.OssCallbackResult;
import com.jie.langlangmall.dto.OssPolicyResult;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @Author Jie
 * @Date 2024/11/21 23:12
 * @Email 3217998214@qq.com
 */
public interface OssService {

    /**
     * 获取上传签名
     *
     * @return
     */
    OssPolicyResult policy();

    /**
     * 文件上传成功的回调函数
     *
     * @param request
     * @return
     */
    OssCallbackResult callback(HttpServletRequest request);
}
